<?php
class tpl_common_header {
	function call ($toObj) {
		$Head = $toObj->DOG_appendChild ('head');

		$tag = $Head->DOG_appendChild ('meta');
		$tag->attr (array(
			'http-equiv'=>'Content-Type',
			'content'=>'text/html; charDOG_appendChild=UTF-8',
		));

		$tag = $Head->DOG_appendChild ('meta');
		$tag->attr (array(
			'http-equiv'=>'Content-Style-Type',
			'content'=>'text/css',
		));
		
		$tag = $Head->DOG_appendChild ('base');
		$tag->attr (array(
			'href'=>Y('App.Config.Site.BaseURL'),
		));

		$tag = $Head->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'alternate',
			'type'		=>'application/rss+xml',
			'title'	=>'RSS',
			'href'		=>'./blog/rss',
		));

		$tag = $Head->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./css/layout.css',
		));

		$tag = $Head->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./css/decoration.css',
		));

		$tag = $Head->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./js/jquery/jquery.js',
		));
		$tag->Text('');

		$tag = $Head->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./js/jquery/plugins/yutori/jquery.yutori.js',
		));
		$tag->Text('');

		$tag = $Head->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./js/bouyke.js',
		));
		$tag->Text('');

		$tag = $Head->DOG_appendChild ('title');
		$tag->Text(Y('App.Config.Site.SiteName'));

		return true;
	}
}
?>